package com.goods.business.service;

import com.goods.common.vo.business.SupplierVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Date: 2023/3/6 - 14:33
 * @Author: Hyoung
 * @Description:
 */
public interface ISupplierService {
    /**
     * 查询物资来源
     *
     * @param pageNum
     * @param pageSize
     * @param supplierVO
     * @return
     */
    PageVO<SupplierVO> findSupplierList(Integer pageNum, Integer pageSize, SupplierVO supplierVO);

    /**
     * 删除物资
     *
     * @param id
     */
    void deleteSupplierById(Integer id);

    /**
     * 添加一个物资来源
     *
     * @param supplierVO
     */
    void addSupplier(SupplierVO supplierVO);

    /**
     * 根据id查询一个supplier
     *
     * @param id
     * @return
     */
    SupplierVO findSupplierById(Integer id);

    void updateSupplier(Integer id, SupplierVO supplierVO);

    List<SupplierVO> findAll();
}
